<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache"> 
<meta http-equiv="cache-control" content="no-cache"> 
<meta http-equiv="expires" content="0">   
<title>Insert title here</title>
</head>
<body>
<%
	String header = request.getHeader("user-agent");
	if (header.indexOf("Mozilla") != -1) {
		//PC浏览器
		if(header.indexOf("Windows") != -1) {
			response.sendRedirect("index.jsp");
			//request.getRequestDispatcher("index.jsp").forward(request, response);
		}else { //手机浏览器
			response.sendRedirect("wap/index.jsp");
			//request.getRequestDispatcher("wap/index.jsp").forward(request, response);
		}
	}else {
		response.sendRedirect("index.jsp");
		//request.getRequestDispatcher("index.jsp").forward(request, response);
	}
%>
  </body>
</html>